#include "http_agent.hpp"
#include <firebird/service/service_factory.hpp>
#include "server.hpp"
using namespace firebird;

class http_agent_factory : public service_factory {
public:
	service* create(bus& bus) {
		return new server(bus);
	}
	
	void free(service* srv) {
		delete srv;
	}
};


HTTP_AGENT_CDECL  void* __stdcall get_factory() {
	static http_agent_factory factory;
	return (void*)&factory;
}